players = ['charles', 'martina', 'michael', 'florence', 'eli']
print(players[0:3]) # 切片，取部分列表
print(players[:4]) # 默认从表头开始
print(players[2:]) # 默认终止于表尾
print(players[-3:]) # 也可以倒数-3
print(players[0:4:2]) # 可加第三个数步长
# list[start:end:foot] 切片start到end-1，步长foot可选

for player in players[:3]: # 切片用于for循环遍历
    print(player.title(), end=' ')
print()